import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import React from 'react';
import NProgress from "../NProgress";

var LoadingBar = /*#__PURE__*/function (_React$Component) {
  _inherits(LoadingBar, _React$Component);

  var _super = _createSuper(LoadingBar);

  function LoadingBar() {
    _classCallCheck(this, LoadingBar);

    return _super.apply(this, arguments);
  }

  _createClass(LoadingBar, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      NProgress.start();
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      NProgress.done();
    }
  }, {
    key: "render",
    value: function render() {
      return null;
    }
  }]);

  return LoadingBar;
}(React.Component);

export { LoadingBar as default };